package com.woniuxy.run.user.mapper;

import com.woniuxy.run.user.entity.Collection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
public interface CollectionMapper extends BaseMapper<Collection> {
    //根据uerid查询收藏的shopid
    @Select("select shopid from run_collection where userid = #{userid}")
    List<Integer> list(int userid);
}
